<%@ page import="com.portico.dept.solarch.ProjectStatus" %>
        <div class="body">
            <h1></h1>

            <div class="list">
                <table>
                    <thead>
                        <tr>
                            <g:sortableColumn  property="id" title="${message(code: 'projectStatus.id.label', default: 'Id')}" />
                            <g:sortableColumn property="trend" title="${message(code: 'projectStatus.trend.label', default: 'Trend')}" />
                            <g:sortableColumn property="status" title="${message(code: 'projectStatus.status.label', default: 'Status')}" />
                            <g:sortableColumn property="statusType" title="${message(code: 'projectStatus.statusType.label', default: 'Status Type')}" />
                            <g:sortableColumn property="scope" title="${message(code: 'projectStatus.scope.label', default: 'Scope')}" />
                            <g:sortableColumn property="projectPlan" title="Project Plan" />
                            <g:sortableColumn property="governance" title="Governance" />
                            <g:sortableColumn property="resources" title="Resources" />
                            <g:sortableColumn property="timeline" title="Timeline" />
                            <g:sortableColumn property="qualityOfRequirements" title="Quality Of Requirements" />
                            <g:sortableColumn property="qualityOfDesign" title="Quality Of Design" />
                            <g:sortableColumn property="qualityOfCode" title="Quality Of Code" />
                            <g:sortableColumn property="statusDate" title="Status Date" />                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${projectStatusInstanceList}" status="i" var="projectStatusInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                            <td>
                              <g:link controller="projectStatus" action="show" params="['id':projectStatusInstance.id]">${fieldValue(bean: projectStatusInstance, field: "id")}</g:link>
                            ${fieldValue(bean: projectStatusInstance, field: "project.name")} </td>
                        
                            <td>${fieldValue(bean: projectStatusInstance, field: "trend")}</td>
                        
                            <td>${fieldValue(bean: projectStatusInstance, field: "status")}</td>
                        
                            <td>${fieldValue(bean: projectStatusInstance, field: "statusType")}</td>
                        
                            <td>${fieldValue(bean: projectStatusInstance, field: "scope")}</td>
                        
                            <td>${fieldValue(bean: projectStatusInstance, field: "projectPlan")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "governance")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "resources")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "timeline")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "qualityOfRequirements")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "qualityOfDesign")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "qualityOfCode")}</td>
                          <td>${fieldValue(bean: projectStatusInstance, field: "statusDate")}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
        </div>
